<template>
    <el-container>
        <el-container>
            <el-foot>
                <scTable
                    ref="mytable"
                    :data="data"
                    :hidePagination="true"
                    :hideRefresh="true"
                    :hideSetting="true"
                    @row-click="clickRow"
                    :sort-orders="['ascending', 'descending']"
                    @selection-change="selectionChange"
                    row-key="'supplierId'"
                    key="'supplierId'"
                    style="height: 450px; min-width: 420"
                >
                    <el-table-column type="selection" min-width="50"></el-table-column>
                    <el-table-column label="供应商编码" prop="supplierCode" min-width="110" ></el-table-column>
                    <el-table-column label="供应商名称" prop="supplierName" min-width="180" ></el-table-column>
                    <el-table-column prop="realName" label="联系人" width="120"></el-table-column>
                    <el-table-column prop="mobile" label="手机号" width="150"></el-table-column>
                    <el-table-column prop="address" label="地址" width="300" show-overflow-tooltip></el-table-column>
                </scTable>
            </el-foot>
        </el-container>
    </el-container>
</template>

<script>
import publicjs from "@/api/model/publicjs";
export default {
    name: "typelist",
    components: {
        publicjs,
    },
    props: {
        data: { type: Object, default:  {} },
    },
    data() {
        return {
            materialTypeFlag: true,
            selectionRows: [],
            selection: [],
            pkList: ["supplierId"],
            attrList: {},
            valueList: {},
            materialQueryList: {},
            result: "", // 运行结果
            props1: {
                checkStrictly: true,
                emitPath: false,
            },
            group: [],
            optionsUomCode: [],
            lastClickTime: 0,
            doubleClickTimeout: null,
        };
    },
    computed: {},
    methods: {
        //表格选择后回调事件
        selectionChange(selection) {
            this.selectionRows = selection;
        },
    },
    async mounted() {

    },
};
</script>
